// const { defineConfig } = require('@vue/cli-service')
// module.exports = defineConfig({
//   transpileDependencies: true
// })

let proxyObj = {};

proxyObj['/'] = {
  //websocket
  ws: false,
  //目标地址
  target: 'http://localhost:8081',
  //发送请求头 host被设置为target
  changeOrigin: true,
  //不重写请求地址
  pathReWrite: {
    '^/': '/'
  }
}

module.exports = {
  devServer: {
    host: 'Localhost',
    port: 8080,
    proxy: proxyObj
  }
}